package cac.fenjian.resource.inBillQuery.service;

import cac.fenjian.resource.inBillQuery.dao.inBillDao;
import cac.fenjian.resource.inBillQuery.dto.WmsInvInBillLDTO;
import com.cac.dme.adapter.rest.msg.QueryReqBean;
import com.cac.dme.adapter.rest.msg.QueryRespBean;
import com.cac.dme.adapter.utils.PageHelper;
import com.cac.dme.common.exception.service.DaoException;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

@Service
public class inBillService {
    @Autowired
    private inBillDao inBillDaos;
    public QueryRespBean<HashMap> inBillQuery(QueryReqBean<HashMap> queryReqBean, String orderBy, String Keywords) {
        QueryRespBean<HashMap> queryRespBean =new QueryRespBean<>();
        PageHelper.startPage(queryReqBean.getPageParameter());
        HashMap searchParams = queryReqBean.getSearchParams();
        Page<HashMap> dataList = inBillDaos.inBillQuery(searchParams,orderBy,Keywords);
        queryRespBean.setResult(dataList);
        return queryRespBean;
    }
}
